package com.jfcom.directorymonitor.repository;

import com.jfcom.directorymonitor.domain.CiFileRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.Optional;

@org.springframework.stereotype.Repository
public interface DiFileRecordRepo extends JpaRepository<CiFileRecord, Long> {
    @Query("SELECT c FROM CiFileRecord c WHERE c.fullPath = :fullPath")
    Optional<CiFileRecord> findByFullPath(@Param("fullPath") String fullPath);

}
